<?php
if (!empty($_GET['id']))$idResidence=$_GET['id'];
else header('Location:./../index.php');
include_once dirname(__FILE__)."/../../ini.php";
include_once ROOTDIR.'/common/header.php';
include 'leftMenu.php';
// creation de groupe

?>
<u>voici la liste des groupes existant la residence <?php echo $residence->getNom();?></u><br/><br/>

<?php 
$residence->setGroupe();
$gpeIdList=$residence->getGroupe();
//print_r($gpeIdList);
	foreach ($gpeIdList as $gpe){
	$groupe=new Groupe($gpe);
	echo $groupe->getNomGroupe()."<br>";
	}
?>

<?php 
include_once ROOTDIR.'/common/footer.php';
?>